]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Don't pick for every overlay
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 21 Mar 2011 18:46:46 +0000 (14:46 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 21 Mar 2011 21:45:51 +0000 (17:45 -0400)
Don't do an individual hover fixup for every window overlay, instead
just use the new global.sync_hover() to fix up hovers once we have
finished showing the overview.

Based on a patch from Adel Gadllah <adel.gadllah@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=638613

js/ui/overview.js
js/ui/workspace.js

index 34ebec54185065f4b3479bd8a1588047e7179dbe..40cd85272618499d895e5f9bb8c39fcb117a392d 100644 (file)
@@ -690,6 +690,7 @@ Overview.prototype = {
             this._animateNotVisible();
 
         this._syncInputMode();
+        global.sync_pointer();
     },
 
     _hideDone: function() {
index 974893a27280426a6b035f0d07d6a4b6652fdabb..be973b60ead902149df64aaff38682ff200fbf75 100644 (file)
@@ -394,12 +394,6 @@ WindowOverlay.prototype = {
 
     show: function() {
         this._hidden = false;
-        let [x, y, mask] = global.get_pointer();
-        let actor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE,
-                                                  x, y);
-        if (actor == this._windowClone.actor) {
-            this.closeButton.show();
-        }
         this.title.show();
     },